{% extends'CNAMActimanBundle::layoutBody.html.twig' %}
{% block body %}
    <div class="row">
        <div class="col-lg-12">
            <h2>{{ titre }}</h2>
        </div>
    </div><!-- /.row -->
    {{ include('CNAMActimanBundle:Procedure:procedureFormulaire.html.twig') }}
    {% block content %}

        <div class="row">
            <div class="col-lg-7">
                <h2>Liste des Phases</h2>
                <div class="table-responsive">
                    <table class="table table-bordered table-hover tablesorter">
                        <thead>
                            <tr>
                                <th>Phase <i class="fa fa-sort"></i></th>
                                <th>Action <i class="fa fa-sort"></i></th>
                            </tr>
                        </thead>
                        <tbody>
                            {% for Phase in Phases %}
                                <tr>
                                    <td>{{ Phase.nomPhase }}</td>
                                    <td><a href="{{ path('cnam_actiman_procedure_operation', {'idpha': Phase.id}) }}">Edit</a>/<a href="{{ path('cnam_actiman_procedure_phaseDelete', {'idpha': Phase.id}) }}">Suprimer</a></td>
                                </tr>

                            {% endfor %}

                        </tbody>
                    </table>
                </div>
            </div>
            <div class="col-lg-4">

                <div class="row">
                    <div class="cbutton_soiy">
                        <a href="{{ path('cnam_actiman_procedure_phaseEdit', {'idpha': Phase.id}) }}" class="btn btn-primary btn-lg button_soiy"><i class="fa fa-edit"></i>Editer phase</a>   
                    </div>
                </div>
                <div class="row">
                    <div class="cbutton_soiy">
                        <a href="{{ path('cnam_actiman_procedure_phaseDelete', {'idpha': Phase.id}) }}" class="btn btn-primary btn-danger btn-lg button_soiy"><i class="fa fa-remove"></i>Supprimer phase</a>
                    </div>
                </div>
                <div class="row">
                    <div class="cbutton_soiy">
                        <a href="{{ path('cnam_actiman_procedure_operationAdd', {'idpha': Phase.id}) }}" class="btn btn-primary btn-lg button_soiy"><i class="fa  fa-plus"></i>Ajouter opération</a>
                    </div>
                </div>
                <div class="row">
                    <div class="cbutton_soiy">
                        <a href="{{ path('cnam_actiman_procedure_phase', {'idpro':Phase.acProcedure.id}) }}" class="btn btn-primary btn-lg button_soiy"><i class="fa fa-reply"></i> Retour</a>
                    </div>
                </div>
            </div>
        </div><!-- /.row -->
    {% endblock%}
{% endblock%}

